package com.levy.contronller.lamdaTest.stream;

import java.util.Arrays;
import java.util.List;

public class StreamTest1 {

    public static void main(String[] args) {
        List<Integer> list = Arrays.asList(1, 2, 3);
        System.out.println(list.stream().map(o -> o * 2).reduce(0, Integer::sum));
    }
}
